package com.hjl.sso;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * Created by hjl on 2022/8/8
 * 获取token
 * http://localhost:9999/oauth/token?
 * client_secret=abcxyz
 * &grant_type=password
 * &username=admin
 * &password=123456
 * &client_id=client_lagou
 * 验证token
 * http://localhost:9999/oauth/check_token?token=836b4e74-98a1-4eb4-a819-478f501a6350
 * 刷新token
 * http://localhost:9999/oauth/token?grant_type=refresh_token&client_id=client_lagou
 * &client_secret=abcxyz&refresh_token=ba8e6732-ee40-437c-a159-d668ffa21f83
 */
@SpringBootApplication
@EnableDiscoveryClient
public class SsoApplication {

    public static void main(String[] args) {
       try{
           SpringApplication.run(SsoApplication.class,args);
       }catch (Exception e){
           e.printStackTrace();
       }
    }
}
